package models

import (
	"github.com/goravel/framework/database/orm"
)

/*
*
搜索与评论关键词组合
*/
type SearchComment struct {
	orm.Model
	SearchFilterID  uint           `gorm:"column:search_filter_id" form:"search_filter_id" json:"search_filter_id"`
	CommentFilterID uint           `gorm:"column:comment_filter_id" form:"comment_filter_id" json:"comment_filter_id"`
	SearchFilter    *SearchFilter  `gorm:"foreignkey:search_filter_id"`
	CommentFilter   *CommentFilter `gorm:"foreignkey:comment_filter_id"`
}

func (s *SearchComment) TableName() string {
	return "search_comment"
}
